package com.RedRiver.hospitalsystem.record_service.client.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@ApiModel("开立处方")
public class CreatePrescriptionParam {

    @ApiModelProperty("处方药物合集")
    @NotNull(message = "使用药物合集不能为空")
    private List<MedicineParam> list;
//    /**
//     * 医生id
//     */
//    @ApiModelProperty("医生id")
//    @Min(value = 1,message = "医生id为正整数")
//    private Integer doctorId;

    @ApiModelProperty("患者id")
    @Min(value = 1,message = "患者id为正整数")
    private Integer patientId;
}
